package com.mycat.auth.dto.auth;

import com.mycat.auth.domain.AuthResource;

import javax.persistence.Transient;
import java.util.ArrayList;
import java.util.List;

/**
 * 资源树
 * @author roger.
 * @email luojie@yzworld.cn
 * @date 2016/10/18
 */
public class ResourcesTreeDTO extends AuthResource {

    public ResourcesTreeDTO(){}

    @Transient
    private List<ResourcesTreeDTO> children = new ArrayList<>(); // 子资源

    public List<ResourcesTreeDTO> getChildren() {
        return children;
    }

    public void setChildren(List<ResourcesTreeDTO> children) {
        this.children = children;
    }
}
